package main

import (
	"didi-vehicle-certification/api/router"
	"go.uber.org/zap"
	"os"
)

func init() {

	os.MkdirAll("./log", 0777)
	config := zap.NewDevelopmentConfig()
	config.OutputPaths = []string{
		"./log/log",
	}
	build, _ := config.Build()
	zap.ReplaceGlobals(build)
}

func main() {

	initRouter := router.InitRouter()
	initRouter.Run()
	zap.S().Info(":8080启动成功")
}
